package com.youth.orderservice.Client.Impl;

import com.youth.ClientEntity.UserEntity;
import com.youth.orderservice.Client.UserClient;
import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component
public class UserClientFallback implements UserClient {

    @Override
    public UserEntity ByIdGetUser(HashMap<String, String> map) {
        System.out.println("远程调用失败");
        return null;
    }

    @Override
    public boolean subtract(String userId, String money) {
        System.out.println("远程扣减用户余额失败~");
        return false;
    }

}